﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M21 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "t_CabinetCellTemp",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false, comment: "主键")
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Code = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true, comment: "编码"),
                    Name = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true, comment: "名称"),
                    BoxLabel = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true),
                    CabinetBoxId = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true, comment: "柜子格口id"),
                    CellSizeType = table.Column<int>(type: "int", nullable: false, comment: "格口大小类型"),
                    CabinetLocationCode = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true, comment: "点位编码"),
                    CabinetLocationName = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: true, comment: "点位名称"),
                    TaskCode = table.Column<Guid>(type: "uniqueidentifier", nullable: true, defaultValueSql: "(newid())", comment: "业务Id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_t_CabinetCellTemp", x => x.Id);
                },
                comment: "实时分配窗格表");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "t_CabinetCellTemp");
        }
    }
}
